-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NPE in Storage with Mass Ingestion and Compartment Interceptor #6598
base: rel_8_0
Are you sure you want to change the base?
Fix NPE in Storage with Mass Ingestion and Compartment Interceptor #6598
Conversation
…compatibility in mass ingestion mode
Formatting check succeeded! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rel_8_0 #6598 +/- ##
==========================================
Coverage ? 83.52%
Complexity ? 28591
==========================================
Files ? 1798
Lines ? 111245
Branches ? 13969
==========================================
Hits ? 92912
Misses ? 12343
Partials ? 5990 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java
Outdated
Show resolved
Hide resolved
false); | ||
} | ||
|
||
protected DaoMethodOutcome doUpdateForUpdateOrPatch( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This multiple method thing is exactly why i think we should make a new parameters object and have that API be the 'main' one.
Multiple overrides and multiple methods will lead to funny bugs if people make methods with different 'combinations' of parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored out a parameters object. Thanks for the review!
…E-mass-ingestion-with-patient-compartment-interceptor
What was done:
Fixed a couple bugs relating how different settings interact with the Patient Compartment Enforcing Interceptor:
ResourceCompartmentUtil#getPatientCompartmentIdentity()
(used by the interceptor) would throw a NPE when the provided resource isnull
. Fixed by adding a null check.null
. Fixed by ensuring resource is not set to null if the interceptor is present.Closes #6599